package com.ms.p2p.provider.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ms.p2p.bean.PageBean;
import com.ms.p2p.entity.content.Advert;
import com.ms.p2p.provider.AdvertProvider;
import com.ms.p2p.service.impl.AdvertServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by daimajia on 2015/4/19 添加dubbo接口.
 */
@Service
public class AdvertProviderImpl implements AdvertProvider {
    @Autowired
    AdvertServiceImpl advertService;


    public int update(Advert advert) {
        return advertService.update(advert);
    }

    public int insert(Advert map) {
        return advertService.insert(map);
    }

    public List<Advert> getPPTList(Integer is_display, Integer category) {
        return advertService.getPPTList(is_display,category);
    }

    public int delete(int id) {
        return advertService.delete(id);
    }

    public Advert selectById(int id) {
        return advertService.selectById(id);
    }

    public List<Advert> findPager(String addDate_begin, String addDate_end, Integer dis_play, Integer category, PageBean page) {
        return advertService.findPager(addDate_begin,addDate_begin,dis_play,category,page);
    }

    public int findCount(String addDate_begin, String addDate_end, Integer dis_play, Integer category) {
        return advertService.findCount(addDate_begin,addDate_end,dis_play,category);
    }
}
